package com.itheima.redbaby.dao.domain;

import com.itheima.redbaby.dao.DBHelper;
import com.itheima.redbaby.dao.annotation.Column;
import com.itheima.redbaby.dao.annotation.Id;
import com.itheima.redbaby.dao.annotation.TableName;

@TableName(DBHelper.TABLE_CATEGORY)
public class CategoryDo {
	@Id(autoincrement=false)
	@Column(key=DBHelper.TABLE_COL_ID)
	private int id;
	@Column(key=DBHelper.TABLE_COL_ISLEAF)
	private String isleafnode;
	@Column(key=DBHelper.TABLE_COL_NAME)
	private String name;
	@Column(key=DBHelper.TABLE_COL_PID)
	private int parentid;
	@Column(key=DBHelper.TABLE_COL_PIC)
	private String pic;
	@Column(key=DBHelper.TABLE_COL_TAG)
	private String tag;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getIsleafnode() {
		return isleafnode;
	}
	public void setIsleafnode(String isleafnode) {
		this.isleafnode = isleafnode;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getParentid() {
		return parentid;
	}
	public void setParentid(int parentid) {
		this.parentid = parentid;
	}
	public String getPic() {
		return pic;
	}
	public void setPic(String pic) {
		this.pic = pic;
	}
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
}
